/*
 * @Author: your name
 * @Date: 2022-02-10 14:07:24
 * @LastEditTime: 2022-02-14 16:58:16
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \operation-management-systems\src\api\statistical-report\purchase-report.js
 */

// import xjaxios from "@/api/axios";
// import zhreq from "@/api/axios-threeline";

import xjaxios from "@/api/axios";
// import xjaxios from "@/api/axios";

export default {
  /**
   * @description: 获取农资投入报表列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @param {String} order 排序方式 ASC DESC 默认ASC
   * @param {String} sort 自定义排序方式 'createTime'
   * @return {Array}
   */
  //
  outCardInputList(params) {
    return xjaxios.post('/salesOrder/card', params)
  },
  // 柱状图
  outHistogramChartList(params) {
    return xjaxios.post('/salesOrder/histogram', params)
  },
  // 环形图
  ringChartList(params) {
    return xjaxios.post('salesOrder/ring', params)
  },
  // 导出
  exportExcel(params) {
    return xjaxios.post('/salesOrder/exportSaleExcel', params, { responseType: 'arraybuffer' })
  }
  // // 种养品种
  // reportAllBatch(params) {
  //   return xjaxios.post('partYield/queryReportAllBatch', params)
  // }
};
